package com.foreknow.proxy;

public class Test {
    public static void main(String[] args) {
        Dog target = new DogImpl();
       Object proxy = MyProxyFactory.getProxy(target);
       Dog dog = null;
       if(proxy instanceof Dog){
           dog = (Dog) proxy;
           dog.info();
           dog.run();
       }
    }

}
